<?php
namespace Home\Controller;
use Think\Controller;
class CommonController extends Controller {
   protected $uid=null;
	public function _initialize(){
//		 if(!session('uid')){
//		 	redirect(U('login/login'));
//		 }
		 // $this->uid=session('uid');
		// header("Content-type: text/html; charset=utf-8");
		// $data['id']=$_SESSION['uid'];
		// $info=M('business')->where($data)->field('id,business_mobile,business_owner,business_name,business_picture')->find();
		// $this->assign('info',$info);
		$this->assign('menu',C('menu'));
		$this->assign('leftmenu',C('menu')[strtolower(CONTROLLER_NAME)]);
		$this->assign('actionurl',strtolower(CONTROLLER_NAME).'/'.strtolower(ACTION_NAME));

	}


}